package Applikationslogik;
import java.rmi.RemoteException;
/**
 *
 * @author Daniel Mossiossian & René van Straaten
 */
public class PersonImpl extends java.rmi.server.UnicastRemoteObject implements Person {

private int person_id;
private String nachname;
private String vorname;
private int raum;
private int telefon;
private String email;
private boolean ist_admin;

//Dieser Konstruktor ruft den Konstruktor der Superklasse UnicastRemoteObject auf.
/**
 *
 * @throws java.rmi.RemoteException
 */
public PersonImpl()throws java.rmi.RemoteException {
super();}



/**
 *
 * @param PersonID
 * @throws RemoteException
 */
public void set_person_id(int PersonID)throws RemoteException {
this.person_id = PersonID;}


/**
 *
 * @param Nachname
 * @throws RemoteException
 */
public void set_nachname(String Nachname)throws RemoteException {
this.nachname = Nachname;}


/**
 *
 * @param Vorname
 * @throws RemoteException
 */
public void set_vorname(String Vorname)throws RemoteException {
this.vorname = Vorname;}


/**
 *
 * @param Raum
 * @throws RemoteException
 */
public void set_raum(int Raum)throws RemoteException {
this.raum = Raum;}


/**
 *
 * @param Telefon
 * @throws RemoteException
 */
public void set_telefon(int Telefon)throws RemoteException {
this.telefon = Telefon;}


/**
 *
 * @param Email
 * @throws RemoteException
 */
public void set_email(String Email)throws RemoteException {
this.email = Email;}


/**
 *
 * @param IstAdmin
 * @throws RemoteException
 */
public void set_ist_admin(boolean IstAdmin)throws RemoteException {
this.ist_admin = IstAdmin;}



/**
 *
 * @return
 * @throws RemoteException
 */
public int get_person_id()throws RemoteException {
return person_id;}


/**
 *
 * @return
 * @throws RemoteException
 */
public String get_nachname()throws RemoteException {
return nachname;}


/**
 *
 * @return
 * @throws RemoteException
 */
public String get_vorname()throws RemoteException {
return vorname;}


/**
 *
 * @return
 * @throws RemoteException
 */
public int get_raum()throws RemoteException {
return raum;}


/**
 *
 * @return
 * @throws RemoteException
 */
public int get_telefon()throws RemoteException {
return telefon;}


/**
 *
 * @return
 * @throws RemoteException
 */
public String get_email()throws RemoteException {
return email;}


/**
 *
 * @return
 * @throws RemoteException
 */
public boolean get_ist_admin()throws RemoteException {
return ist_admin;}

/**
 *
 * @return
 */
public String get_voller_name(){
        return this.vorname + " " + this.nachname;
}
@Override
public String toString(){
        return this.vorname + " " + this.nachname;
}
}